from django.db import models
from PMSP.utils.base_model import BaseModel
from orders.models import OrderInfo

# 支付模型，用来判断是否已经支付过了
class PayModel(BaseModel):
    trade_no = models.CharField(max_length=50,unique=True,null=False,verbose_name="支付宝订单号")
    out_trade_no = models.ForeignKey(OrderInfo,on_delete=models.CASCADE,verbose_name="PMSHOP订单号")

    class Meta:
        db_table = "tb_payment"
